#include "udp_server.hpp"

int main(int argc, char* argv[])  //通过命令行传参初始化UdpServer
{
    if(argc != 2){
        std::cerr << "Usage:" << argv[0] << "port" << std::endl;
        return 0;
    }
    //std::string ip = "127.0.0.1";  //标识本主机，本地环回
    int port = atoi(argv[1]);
    UdpServer* us = new UdpServer(port);

    us->InitServer();
    us->Start();
    return 0;
}
